<?php
if (!defined('APP_ID')) { die('No direct script access allowed'); }

class Session {
	public static function get($var, $default = null) {
		return Arr::get($_SESSION, $var, $default);
	}	

	public static function set($var, $val) {
		$_SESSION[(string) $var] = $val;
	}	

	public static function is($var) {
		$result = false;
		
		
		if (isset($_SESSION[(string) $var])) {
			$result = true;
		}
		
		return $result;
	}
}
